@echo off
echo 正在清理C盘所有Python环境...

REM 删除独立Python安装
if exist "C:\Users\Administrator\AppData\Local\Programs\Python" (
    rmdir /s /q "C:\Users\Administrator\AppData\Local\Programs\Python"
    echo ✅ 已删除独立Python安装
)

REM 删除用户Python包
if exist "C:\Users\Administrator\AppData\Roaming\Python" (
    rmdir /s /q "C:\Users\Administrator\AppData\Roaming\Python"
    echo ✅ 已删除用户Python包
)

REM 删除pip缓存
if exist "C:\Users\Administrator\AppData\Local\pip" (
    rmdir /s /q "C:\Users\Administrator\AppData\Local\pip"
    echo ✅ 已删除pip缓存
)

REM 设置环境变量
setx PYTHONUSERBASE "F:\Python-Environment\Roaming\Python"
setx CONDA_PKGS_DIRS "F:\Python-Environment\conda-cache"
echo ✅ 已设置环境变量

echo 清理完成！请重启终端并运行 conda activate base
pause